/****************************** (C) COPYRIGHT 2016 RSEStudio ****************************
* File Name          : 
* Author             : RSES_Liyang
* Version            : V1.0.0
* Date               : 00-May-18
* Description        : 
*****************************************************************************************/

#ifndef __COMMODULE_H__
#define __COMMODULE_H__

/* Includes ----------------------------------------------------------------------------*/
/* Exported types ----------------------------------------------------------------------*/
/* Exported constants ------------------------------------------------------------------*/

#define USB_COMM_EVENT_PACKET_RECV				0x0002

/* Exported macro ----------------------------------------------------------------------*/
/* Exported functions ----------------------------------------------------------------- */

extern uint8_t comModule_int_Buf[32];
extern uint8_t comModule_Buf[64];
extern uint8_t usb_trans_length;
extern SemaphoreHandle_t sem_usb_com;

//extern int16_t  Ble_comm_trans_status;
//extern int16_t  Ble_comm_trans_length;

int USBCommunication_Start(void);
void USBComModuleInit(void);
int32_t USB_comm_command_register(uint16_t command_id,cb_command cb_func);

#endif
/********************************(C)COPYRIGHT 2016 RSEStudio ****************************/
/*****************************************END OF FILE************************************/
